*! z1 v1.0 6jan2008
*! z1 v1.1 11 jul 2008
*! Author: L.J Zigerell Jr.
*! Normalizes variables (i.e., recodes variables to range from 0 to 1)

capture program drop z1
program define z1
version 8.0
syntax varlist(numeric) [, Overwrite]
local vars `varlist'
	foreach v of local vars {
	quietly summarize `v'
	gen z_`v' = (`v' - r(min))/(r(max)-r(min))
				}

end
